home *** CD-ROM | disk | FTP | other *** search
- unit Vatcalc;
- { Calculates UK Value Added Tax at 17.5%. Can easily be changed to calculate
- other countries' taxes too, of course! }
- interface
-
- procedure PlusVat( var subtot, vattot, grandtot : real );
- procedure MinusVat( var subtot, vattot, grandtot : real );
-
- implementation
- procedure PlusVat( var subtot, vattot, grandtot : real );
- begin
- vattot := (subtot * 0.175);
- grandtot := vattot + subtot;
- end;
-
- procedure MinusVat( var subtot, vattot, grandtot : real );
- begin
- vattot := (grandtot * 0.14894);
- subtot := grandtot - vattot;
- end;
-
- end.
-